//
//  NextGoodsCell.m
//  YYPHSpeedJump
//
//  Created by sujiang on 15/12/25.
//  Copyright © 2015年 sujiang. All rights reserved.
//

#import "NextGoodsCell.h"

@implementation NextGoodsCell

- (void)awakeFromNib {
   
    self.goodPic.contentMode = UIViewContentModeScaleAspectFit;
    
    
}


- (void)setModel:(NextGoodModel *)model
{
    [self.goodPic sd_setImageWithURL:[NSURL URLWithString:model.head_img_url] placeholderImage:[UIImage imageNamed:@"tu-zhong02"]];
    self.goodNameLb.text = model.name;
    
    NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:model.original_price];
    [attri addAttribute:NSStrikethroughStyleAttributeName value:@(NSUnderlinePatternSolid | NSUnderlineStyleSingle) range:NSMakeRange(0, model.original_price.length)];
    [attri addAttribute:NSStrikethroughColorAttributeName value:kColors(159, 159, 159, 1) range:NSMakeRange(0, model.original_price.length)];
    [self.marketPriceLb setAttributedText:attri];
   //  self.marketPriceLb.text = model.original_price;
//    if ([model.uped isEqualToString:@"1"]) {
//        self.clickCountLb.textColor = kColors(255, 166, 46, 1);
//    } else {
//        self.clickCountLb.textColor = kColors(255, 255, 255, 1);
//    }
//    self.clickCountLb.text = model.up_users;
    _model = model;
}


@end
